#!/usr/bin/env python

import wx

import component as c
import resource as r

class ToolBar(wx.ToolBar):
    '''ToolBar class
    
    @author Julot <andy.julot@gmail.com>
    @since Thursday, February 23, 2012. 03:55 PM'''
    
    def __init__(self, parent):
        style = wx.TB_HORIZONTAL | wx.TB_FLAT | wx.TB_NODIVIDER
        super(ToolBar, self).__init__(parent, style=style)
        self.ToolBitmapSize = (16, 16)
        
        self.send = c.ToolBarToolBase(self, r.toolbar.MailSend.Bitmap,
                                      r.string.view.message.send,
                                      r.string.view.message.send)
        self.send.disable()
        
        self.Realize()